package com.zhongketech.sunflower.adapter;

import java.util.UUID;

public class ZKMessage {

	public static enum Direct 
	{
		SEND,
		RECEIVE
	}

	public static enum Status 
	{
		SUCCESS,
		CREATE,
		FAIL,
		INPROGRESS
	}
	
	public static enum Type
	{
		LOCATION,
		IMAGE,
		VOICE,
		VIDEO,
		TXT,
		FILE,
	}

	public Status status;
	public Direct direct;
	public boolean isAcked;
	
	private String time;
	private Type type;
	private Object body;
	private String id;
	private ChatType chatType;
	
	
	
	public ZKMessage(String time,Type type,Object body) {
		this.time = time;
		this.type = type;
		this.body = body;
		
		/*test cod*/
		status = Status.SUCCESS;
		direct = Direct.SEND;
		/*test code end*/
		id = UUID.randomUUID().toString();
	}
	
	public void setMsgTime(String time)
	{
		this.time = time;
	}

	public String getMsgTime() {
		// TODO Auto-generated method stub
		return time;
	}

	public void setType(Type type)
	{
		this.type = type;
	}
	
	public Type getType() {
		// TODO Auto-generated method stub
		return type;
	}
	
	public void setBody(Object object)
	{
		body = object;
	}
	
	
	public Object getBody() {
		// TODO Auto-generated method stub
		return body;
	}

	public String getMsgId() {
		// TODO Auto-generated method stub
		return id;
	}

	public ChatType getChatType() {
		// TODO Auto-generated method stub
		return chatType;
	}

	public String getFrom() {
		// TODO Auto-generated method stub
		return id;
	}

}
